﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;

using PdfCreative.Pdf.Graphics;

namespace HelloWorld
{
    class Program
    {
        static void Main(string[] args)
        {
            // We will create 'HelloWorld.pdf' in the user's temporary folder.
            string path = Path.Combine(Path.GetTempPath(), "HelloWorld.pdf");

            // Create a new Graphics instance.
            Graphics g = new Graphics(path);

            // Draw 'Hello, World!' in a 10 points font, half an inch from the
            // top-left hand corner of the page.
            g.DrawString(
                Rgb.BlackBrush, "Hello, World!", new Font("Times New Roman"), 10f, 36f, 36f);

            // Close the graphics.
            g.Close();

            // Open the PDF document.
            Process.Start(path);
        }
    }
}
